import {
  Component,
  Input,
  OnInit,
  ElementRef,
  Renderer2,
  TemplateRef,
  ContentChild,
} from '@angular/core';

@Component({
  selector: 'apes-subtotal',
  template: `
    <div class="subtotalContainer">
      <div>
        <ng-content #subtotalLeft select=".subtotalLeft"></ng-content>
      </div>
      <div>
        <ng-content #subtotalRight select=".subtotalRight"></ng-content>
      </div>
    </div>
  `,
  styleUrls: [],
})

export class ApesSubtotalComponent implements OnInit {

  // @Input() title: string;     //测试输入

  @ContentChild('subtotalLeft',{static:false}) subtotalLeft: TemplateRef<any>;

  @ContentChild('subtotalRight',{static:false}) subtotalRight: TemplateRef<any>;

  constructor(private el: ElementRef, private renderer: Renderer2) {
  }

  ngOnInit() {
  }

}
